

    <div class="main_body" id="main_body">
      <div class="breadcrub">
        当前位置：文章管理>文章列表
      </div>
      <div class="pannel">
        <span class="sel_label">请选择文章分类：</span>
        <form id="select-articles" action="/articles" method="get"> 
          <select name="select" id="select" class="sel_opt">
            {{range .types}}
                <option {{if compare .TypeName $.typeName }} selected {{end}}>{{.TypeName}}</option>
            {{end}}
          </select>
        </form>

        <table class="common_table">
          <tr>
            <th width="43%">文章标题</th>
            <th width="10%">文章内容</th>
            <th width="16%">添加时间</th>
            <th width="7%">阅读量</th>
            <th width="7%">删除</th>
            <th width="7%">编辑</th>
            <th width="10%">文章类型</th>
          </tr>

          {{range.articles}}
          <tr>
            <td>{{ .ArtiName }}</td>
            <td><a href="/articleDetail?id={{.Id}}">查看详情</a></td>
            <td>{{ .Atime.Format "2006-01-02 15:04:05" }}</td>
            <td>{{.Acount}}</td>
            <td><a href="/articleDelete?id={{.Id}}" class="dels">删除</a></td>
            <td><a href="/articleEdit?id={{.Id}}">编辑</a></td>
            <td>{{.ArticleType.TypeName}}</td>
          </tr>
          {{end}}
        </table>

        <ul class="pagenation">
          <li><a href="/articles?page=1">首页</a></li>
          <li><a href="/articles?page={{.page | prepage}}">上一页 </a></li>
          <li>
            <a href="/articles?page={{ nextpage .page .pageCount }}">下一页</a>
          </li>
          <li><a href="/articles?page={{.pageCount}}">末页</a></li>
          <li>共{{.count}}条记录/共{{.pageCount}}页/当前{{.page}}页</li>
        </ul>
      </div>
    </div>

